// 02.03.12 - Matthew Brews - Original Creation.

#include "windowbounds.h"
CWindowbounds::CWindowbounds() {
    m_fLeft = 0;
    m_fRight = 0;
    m_fTop = 0;
    m_fBottom = 0;
}
CWindowbounds::CWindowbounds(float left, float top, float right, float bottom)
{
    m_fLeft = left;
    m_fRight = right;
    m_fTop = top;
    m_fBottom = bottom;
}

CWindowbounds::CWindowbounds(float leftright, float topbottom)
{
    m_fLeft = leftright;
    m_fRight = leftright;
    m_fTop = topbottom;
    m_fBottom = topbottom;
}

float CWindowbounds::getLeft() const
{
    return m_fLeft;
}

float CWindowbounds::getRight() const
{
    return m_fRight;
}

float CWindowbounds::getTop() const
{
    return m_fTop;
}

float CWindowbounds::getBottom() const
{
    return m_fBottom;
}

float CWindowbounds::getHeight() const
{
    return (m_fTop - m_fBottom);
}

float CWindowbounds::getWidth() const
{
    return (m_fRight - m_fLeft);
}

void CWindowbounds::setLeft(float left)
{
    m_fLeft = left;
}

void CWindowbounds::setRight(float right)
{
    m_fRight = right;
}

void CWindowbounds::setTop(float top)
{
    m_fTop = top;
}

void CWindowbounds::setBottom(float bottom)
{
    m_fBottom = bottom;
}

void CWindowbounds::setHeight(float height)
{
    m_fTop = (m_fBottom + height);
}

void CWindowbounds::setWidth(float width)
{
    m_fRight = (m_fLeft + width);
}

void CWindowbounds::setSize(float width, float height)
{
    m_fRight = (m_fLeft + width);
    m_fTop = (m_fBottom + height);
}